﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServerApp.DAO
{
    public class Role
    {
        /// <summary>
        /// 角色对应的账号ID
        /// </summary>
        public int accid; 
        /// <summary>
        /// 角色名称
        /// </summary>
        public string name;
        /// <summary>
        /// 角色拥有的金币
        /// </summary>
        public int coin;
        /// <summary>
        /// 角色等级
        /// </summary>
        public int level;
        /// <summary>
        /// 角色当前经验值
        /// </summary>
        public int exp;
        /// <summary>
        /// 升级所需经验值
        /// </summary>
        public int next_exp;
        /// <summary>
        /// 胜利场次
        /// </summary>
        public int win;
        /// <summary>
        /// 失败场次
        /// </summary>
        public int lost;

        public Role() { }

        public Role(int accid, string name) {
            this.accid = accid;
            this.name = name;
            this.coin = 1000;
            this.exp = 0;
            level = 1;
            this.next_exp = level * 100;
            win = 0;
            lost = 0;
        }
    }
}
